CHARACTERISTICS
DC12-30V wide voltage power supply; RS485 communication isolation, input optocoupler isolation, relay output contact isolation; The communication interface supports RS232 RS485; Supports standard Modbus protocol and RTU format; Equipped with flashing and breaking functions, it can include parameters in the command and operate the relay to automatically turn off after a period of time; Equipped with strobe function, it can control the periodic switching of relays; 0-255 device addresses can be set through software configuration.
2、 Product Features
8-way optocoupler input (5-24V); 12 relay outputs; 8-channel 12 bit resolution analog voltage input; 4-channel 12 bit resolution analog isolated output; Support baud rate: 2400480096001920038400 (can be modified through software, default 9600);
3、 Version Description
① Normal version: The default input and output of the device are independent of each other and have no relationship.
② Intelligent self-control version:
Timed control - customizable time control for year, month, day, hour, minute, and second, which can be looped;
Output Interlock - Customize the interlocking relationship between output channels;
Switch linkage - manual switch or switch triggered device is linked with control output;
Analog automatic control - customize the upper and lower limit thresholds of analog signals, and automatically control them after triggering;
Scene control - Customize complete logic control triggering conditions;
70 sets of rule settings - up to 70 sets of rule condition settings to meet various logical requirements.
4、 Main parameters

5、 Interface Description

1. Pin Description

6、 Communication wiring instructions
1. RS485 cascade connection method

The built-in serial port of a computer is usually RS232, which requires a 232-485 converter (active isolated converters are recommended for industrial environments). After conversion, RS485 is connected to two wires, A and B. A is connected to terminal A on the board, B is connected to terminal B on the board, and the 485 shield can be connected to GND. If there are many devices, it is recommended to use twisted pair shielded wires and adopt a chain network structure.
2. RS232 wiring: The RS232 interface is a DB9 head interface, connected using standard straight through wires.
7、 Input/output wiring
1. Schematic diagram of active switch wiring

2. Schematic diagram of passive switch wiring

3. Relay wiring instructions

The power supply in the following figure is for sensor power supply. AI1-AI8 are connected to the sensor signal positive, ACOM - is the sensor signal negative, and ACOM+is not used. The relationship between the AI data collected by the device and the actual input value: actual value=return value * 0.001
two-wire system

Three-wire

four-wire system

8、 Test software description
1. Software Download:Juying Soar DAM Debugging Software User Guide
2. Software interface

3. Communication testing
① Select the current serial port number of the device and open the serial port; ② Select the corresponding product model; ③ Change the device address to 254, click "Read Address", and the software will prompt "Read Successful" at the bottom. If the device address read is "0" and the send and command in the lower right corner of the software are correct, it means that the device has successfully communicated with the computer.

4. Analog data explanation
The query rate of DAM debugging software is 3 seconds. After connecting the input signal, the input status and data can be immediately viewed by clicking on the read optocoupler or reading the analog quantity. The relationship between AI data in software and actual input values: actual value=return value * 0.001
9、 Parameter and working mode configuration
1. Equipment address
1.1 Introduction to device address: DAM series devices default to address 0 and use broadcast address 254 for communication. Communication cannot be achieved with 0. Device address=dip switch address+offset address.
1.2. Device Address Reading: After the device communicates normally, write the initial device address to 254, and then click "Read Address" on the top of the software to read the current address of the device.

1.3. Address of dip switch

1. When all five dialing codes are dialed to the "ON" position, it is the address "31"; 2. When all five dialing codes are dialed to the "OFF" position, it is the address "0"; 3. The leftmost 1 is the binary lowest bit. 4. Address Table:

1.4. Setting and Reading of Offset Address: Click on "Read" or "Set" after the offset address in the DAM debugging software to read or set the offset address of the device.

2. Reading and Setting of Baud Rate
Click on "Read" and "Set" in the baud rate settings bar below to read and set the baud rate and address respectively. After the operation, you need to restart the device and modify the computer serial port settings.

3. Working mode
① Normal version: The default input and output of the device are independent of each other and have no relationship.
② Intelligent self-control version: The correspondence between switch input (DI) and analog input (AI) and relay output (DO) requires the use of DLC configuration software for configuration.
DLC configuration software download address:Click to go
4. Flash on/off function and settings
4.1 Introduction to Flashing and Breaking Functions
Manual mode: For each operation of the relay, the relay will flip once (open when closed, close when open);
Flashing mode: For each operation of the relay, the relay will close for 1 second (actual time [unit second]=set number * 0.1) and then automatically disconnect;
Flashing mode: For each operation of the relay, the relay will disconnect for 1 second (adjustable time) and then automatically close;
4.2. Flashing and disconnecting settings
Open the "Juying Soaring DAM Debugging Software" and click the dropdown arrow behind the relay mode to select the mode. (The later time can be set by yourself, actual time=fill in the number * 0.1 [unit second]) Note: The flash off mode cannot be written into the device chip. After selecting the flash off mode on the software, all channels are in flash off mode. Single channel control can be achieved by sending a flash off command for a single channel, without affecting the normal control of other channels.

10、 Development documentation description
1. Communication protocol description: This product supports standard Modbus instructions. For detailed instruction generation and parsing methods, please refer to the register table in this article in conjunction with the "MODBUS Protocol Chinese Version". Download link for Modbus protocol manual:Modbus 20POLL Software and User Manual
2. Modbus Register Description
Coil register address table:

remarks:
① Modbus device instructions support the following Modbus addresses: 00001 to 09999 are discrete outputs (coils), 10001 to 19999 are discrete inputs (contacts), 30001 to 39999 are input registers (usually analog inputs), 40001 to 49999 are hold registers (usually storing device configuration information), using a 5-bit code format, with the first character determining the register type and the remaining 4 characters representing the address. Address 1 starts from 0, such as 00001 corresponding to 0000.
② Table of baud rate values correspondence

3. Instruction generation instructions
The instructions can be obtained by checking the debugging information in the "Juying Soar DAM Debugging Software".


Instruction generation instructions: For instructions not listed in the table below, users can generate them themselves according to the Modbus protocol. For reading and writing relay coils, it is actually reading and writing coil registers in the Modbus register. The address of the relay register has been explained in the previous text, and users only need to generate read and write instructions for register operations. For example, reading or writing the status of relay 1 is actually a read/write operation on the coil register 00001 corresponding to relay 1.
4. Instruction List

5. Instruction Explanation
5.1 Relay output
Control one relay (taking the first one as an example, refer to this example for other channels), if any byte changes, the CRC check bit will also change accordingly.
Send code: FE 05 00 00 FF 00 98 35

Relay card return information:
Return code: FE 05 00 00 FF 00 98 35

5.2 Relay Status
Query 12 relays
Send code: FE 01 00 00 00 0C 28 00

Relay card return information:
Return code: FE 01 01 00 61 9C
Field Meaning Remarks

5.3 Optocoupler input
Query optocoupler
Send code: FE 02 00 00 00 08 6D C3

Optocoupler return information:
Return code: FE 02 01 01 50 5C

5.4 Analog Query: The relationship between the obtained analog data and the actual input value is: actual value=return value * 0.001
Query analog quantity AD word
Send code: FE 04 00 00 00 08 E5 C3

Simulated return information:
Return code: FE 04 02 00 00 AD 24

5.5. Single channel analog output: The relationship between analog data and actual output value is: actual value=output value * 0.01
Set the first analog output
FE 06 01 90 03 20 9D 3C

Simulated return information:
FE 06 1 90 03 20 9D3C

5.6. Setting up multiple analog output channels
FE 10 01 90 00 04 08 00 00 00 00 00 00 00 00 C8 3A

Simulated return information:
FE 10 01 90 00 04 D4 14

5.7 Flash on/off command
Analysis of Flash Open and Flash Close Instructions
Flash development code: FE 10 00 03 00 02 04 00 04 00 0A 41 6B
Flashing sending code: FE 10 00 03 00 02 04 00 02 00 14 21 62
Field Meaning Remarks

Return code: FE 10 00 03 00 02 A5 C7

5.8. Fully open and fully close command
Analysis of fully open and fully closed commands
Full development code submission: FE 0F 00 00 00 0C 02 FF FF A1 F4
Completely disconnect sending code: FE 0F 00 00 00 0C 02 00 00 A0 44

Full open return code: FE 0F 00 00 00 0C 41 C1
Total disconnect return code: FE 0F 00 00 00 0C 41 C1

11、 Common problems and solutions
1. 232 communication, device control no response, no action: The device communicates with the upper computer using a 232 direct connection. RX to RX, TX to TX, GND to GND
2. Relays can only be turned on and cannot be turned off: check whether the read address is the actual device address, whether there is a return command in the debugging information column, and whether the return command is correct. If the read address fails, there is no return command or the return command is abnormal, check the communication line and communication converter
3. When multiple devices are hung on the 485 bus, each device's address cannot be the same, and broadcast address 254 cannot be used for communication When there is only one device on the bus, the broadcast address can be used. If there are more than one device, please use a dip switch to distinguish the address for control. Otherwise, the module may not execute instructions correctly due to asynchronous judgment of communication data.
12、 Technical Support Contact Information
Contact phone number: 4008128121, 010-82899827/1-803
Contact QQ: 4008128121